<?php


namespace app\common\exception;


use think\Exception;


class ApiException extends Exception
{

    public function __construct(string $message, int $code = 0)
    {
        $this->message = $message;
        $this->code = $code;
    }
}